import java.io.*;
class FileDemo2 
{
	public static void main(String[] args) 
	{
		File dir = new File("c:\\");
		String[] names = dir.list();
		for(String name : names)
		{
			System.out.println(name);
		}
		File[] roots = File.listRoots();
		for(File root : roots)
		{
			System.out.println(root);
		}
	}
}
